package Game;


public class SceneManager 
{
	static public CENA currentScene;
	static public Scene scene = null;

	static public void Setup()
	{
		ManagerSound.getIntance().Setup();
		SceneManager.scene = new GeneralOpening();
		SceneManager.currentScene = CENA.SCN_GeneralOpening;
	}
	
	static public void MudarCena()
	{
		switch (SceneManager.currentScene)
		{
			case SCN_GeneralOpening:
				SceneManager.scene = new ArkanoidOpening();
				SceneManager.currentScene = CENA.SCN_ArkanoidOpening;
				break;

			case SCN_ArkanoidOpening:
				SceneManager.scene = new Level01Arkanoid();
				SceneManager.currentScene = CENA.SCN_Level01Arkanoid;
				break;
				
			case SCN_Level01Arkanoid:
				SceneManager.scene = new Level02Arkanoid();
				SceneManager.currentScene = CENA.SCN_Level02Arkanoid;
				break;
				
			case SCN_Level02Arkanoid:
				SceneManager.scene = new  Level03Arkanoid();
				SceneManager.currentScene = CENA.SCN_Level03Arkanoid;
				break;
				
			case SCN_Level03Arkanoid:
				SceneManager.scene = new PongOpening();
				SceneManager.currentScene = CENA.SCN_PongOpening;
				break;
				
			case SCN_PongOpening:
				SceneManager.scene = new Level01Pong();
				SceneManager.currentScene = CENA.SCN_Level01Pong;
				break;
				
			case SCN_Level01Pong:
				SceneManager.scene = new Level02Pong();
				SceneManager.currentScene = CENA.SCN_Level02Pong;
				break;
				
			case SCN_Level02Pong:
				SceneManager.scene = new Level03Pong();
				SceneManager.currentScene = CENA.SCN_Level03Pong;
				break;
				
			case SCN_Level03Pong:
				SceneManager.scene = new SpaceInvadersOpening();
				SceneManager.currentScene = CENA.SCN_SpaceInvadersOpening;
				break;
				
			case SCN_SpaceInvadersOpening:
				SceneManager.scene = new Level01SInvaders();
				SceneManager.currentScene = CENA.SCN_Level01SInvaders;
				break;
				
			case SCN_Level01SInvaders:
				SceneManager.scene = new Level02SInvaders();
				SceneManager.currentScene = CENA.SCN_Level02SInvaders;
				break;
				
			case SCN_Level02SInvaders:
				SceneManager.scene = new Level03SInvaders();
				SceneManager.currentScene = CENA.SCN_Level03SInvaders;
				break;
				
			case SCN_Level03SInvaders:
				SceneManager.scene = new Congrats();
				SceneManager.currentScene = CENA.SCN_Congrats;
				break;
				
			case SCN_GradiusOpening:
				SceneManager.scene = new Level01Gradius();
				SceneManager.currentScene = CENA.SCN_Level01Gradius;
				break;
				
			case SCN_Level01Gradius:
				SceneManager.scene = new Level02Gradius();
				SceneManager.currentScene = CENA.SCN_Level02Gradius;
				break;
				
			case SCN_Level02Gradius:
				SceneManager.scene = new Level03Gradius();
				SceneManager.currentScene = CENA.SCN_level03Gradius;
				break;
				
			case SCN_level03Gradius:
				SceneManager.scene = new  Congrats();
				SceneManager.currentScene = CENA.SCN_Congrats;
				break;
				
			case SCN_Congrats:
				SceneManager.scene = new Creditos();
				SceneManager.currentScene = CENA.SCN_Credits;
				break;
				
			case SCN_Credits:
				SceneManager.scene = new GeneralOpening();
				SceneManager.currentScene = CENA.SCN_GeneralOpening;
				break;
			
			default:
				break;
		}
	}

	public enum CENA
	{
		SCN_GeneralOpening,
		SCN_ArkanoidOpening,
		SCN_Level01Arkanoid,
		SCN_Level02Arkanoid,
		SCN_Level03Arkanoid,
		SCN_PongOpening,
		SCN_Level01Pong,
		SCN_Level02Pong,
		SCN_Level03Pong,
		SCN_SpaceInvadersOpening,
		SCN_Level01SInvaders,
		SCN_Level02SInvaders,
		SCN_Level03SInvaders,
		SCN_GradiusOpening,
		SCN_Level01Gradius,
		SCN_Level02Gradius,
		SCN_level03Gradius,
		SCN_Congrats,
		SCN_Credits,
	}
}
